package com.kksoft.readcm.a;

import com.kksoft.readcm.objects.ac;
import com.kksoft.readcm.objects.l;
import com.kksoft.readcm.objects.n;

public final class w
{
	private int a;
    private ac b;
    private l c;
    private String d;
    private boolean e;
    private ItemAppObservable f;


  public w(ItemAppObservable itemAppObservable)
  {
	  super();
	  f = itemAppObservable;
      a = 0;
      b = null;
      c = null;
      d = null;
      e = false;
  }

  public final void a(int i, ac ac, l l, String s)
  {
      a = i;
      b = ac;
      c = l;
      d = s;
      e = false;
  }

  public final void a(l l)
  {
      c = l;
      e = true;
  }

  public final boolean a()
  {
      return e;
  }

  public final n b()
  {
	  switch (this.a)
	  {
	  	default:
	  		return null;
	  	case 1:
	  		return f.a();
	  	case 2:
	  		return  f.g();
	  	case 3:
	  		return f.h();
	  	case 4:
	  		if(d == null)
	        {
	  			return null;
	        } else
	        {
	            n n2 = f.a();
	            n2.d();
	            return n2.a(d);
	        }
	  }
  }

  public final l c()
  {
    return this.c;
  }
}